<table cellspacing="1" cellpadding="4" width="100%">
    <tr align="center" valign="top">
        <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
            <div class="Block">

                <?php echo $this->renderPartial('_search', arraY('model' => $model)); ?>
                <?php echo $this->renderPartial('/layouts/toolbar'); ?>
                <?php
                $this->widget('zii.widgets.grid.CGridView', array(
                    'id' => 'admin-grid',
                    'cssFile' => Yii::app()->baseurl . '/public/admin/grid.css',
                    'dataProvider' => $model->getSearch(),
                    'id' => 'ta',
                    'itemsCssClass' => 'tab',
                    'rowCssClass' => array('rows', 'rows'),
                    'columns' => array(
                        array(
                            'header' => CHtml::activeLabel($model, 'check_all'),
                            'class' => 'CCheckBoxColumn',
                            'selectableRows' => '20',
                            'checked' => 'false',
                            'checkBoxHtmlOptions' => array('name' => 'selectdel[]'),
                            'headerHtmlOptions' => array('class' => 'sub', 'width' => '5%'),
                            'footer' => CHtml::dropDownList('options', 's', array('请选择...',  '删除选中', '批量更新'))
                        ),
                        array('name' => 'video_id', 'headerHtmlOptions' => array('width' => '6%')),
                        array('name' => 'video_name', 'headerHtmlOptions' => array('width' => '20%')),
                        array('name' => 'categorys', 'headerHtmlOptions' => array('width' => '14%'), 'type' => 'html'),
                        array('name' => 'servers', 'headerHtmlOptions' => array('width' => '10%'),'type' => 'html'),
                        array('name' => 'video_hots', 'headerHtmlOptions' => array('width' => '10%')),
                        array('name' => 'videoLevel', 'headerHtmlOptions' => array('width' => '9%'),'type' => 'html', ),
                        array('name' => 'video_create_user', 'headerHtmlOptions' => array('width' => '6%')),
                        array('name' => 'video_create_time','value' => 'date("Y-m-d H:i:s", $data->video_create_time)', 'headerHtmlOptions' => array('width' => '8%')),
                        array(
                            'header' => yii::t('default', '操作'),
                            'class' => 'CButtonColumn',
                            'viewButtonLabel' => yii::t('default', '查看详细信息'),
                            'viewButtonOptions' => array('class' => 'opendialog gridviewurl',
                            //'url'=>$this->createUrl('view',array('id'=>'$data->admin_id')),
                            ),
                            'headerHtmlOptions' => array('width' => '10%'),
                            'updateButtonLabel' => yii::t('default', '修改详细信息'),
                            'updateButtonOptions' => array('class' => 'opendialog gridviewurl',
                            ),
                        ),
                    ),
                        // 'cssFile'=>Yii::app()->request->baseUrl.'/css/base.css',
                ));
                ?>


            </div>
        </td>
    </tr>
</table>